package com.legendshop.openportal.sdk.model.request;

import com.legendshop.openportal.sdk.model.BaseRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import static com.legendshop.openportal.sdk.model.constants.ApiPathConstants.GET_TOWN;

/**
 * @Description: 获取四级地址
 * @Author lwj
 * @data 2024/6/19
 **/

@Data
@Accessors(chain = true)
public class GetTownRequest extends BaseRequest {
    private static final long serialVersionUID = 1258325326042129822L;


    @NotBlank(message = "三级地址ID不能为空")
    @ApiModelProperty(value = "三级地址ID")
    private String id;


    @Override
    @ApiModelProperty(hidden = true)
    public String getApiPath() {
        return GET_TOWN;
    }
}
